#ifndef __WRAPPER__
#define __WRAPPER__

#include "../bibliotheque/Map.h" 
#pragma comment(lib, "../Debug/bibliotheque.lib") 

using namespace System;

namespace Wrapper {
	public ref class WrapperAlgo {
	private:
		Map* map;
	public:
		 enum class terrain
		{
			PLAINE = 0, MONTAGNE = 1, DESSERT = 2
		};
		 enum class ressource
		{
			RIEN = 0,FRUIT = 1, FER = 2
		};

		WrapperAlgo(){ map = Map_new(); }
		~WrapperAlgo(){ Map_delete(map); }
		int*** Map_computeGeneration(int taille) { return map->generer(taille); }
		int** Map_computeUpdateVille(int x, int y , int** ville){ return map->updateVille(x,y,ville);}
		int** Map_computeInitializeVille(){ 
			int ** expansion = new int* [25];
            for (int i = 0; i < 25; i++)
			{
                expansion[i] = new int [2];
				expansion[i][0] = -1;
				expansion[i][1] = -1;
			}
			return expansion;
		}
	};
}
#endif